from .tasks import send_email,send_sms
from django.http import HttpResponse

#定义异步消息发送
def index(request):
    send_email.delay('张三')
    send_sms.delay('李四')
    
    return HttpResponse("index{id1}=={id2}")
    
